import { postRequest, getRequest } from "@/utils/request";

/**
 * 资产余额
 * @param
 * @returns
 */
export const GetVaBalance = (param, type) => {
  return getRequest("/api/va/assets/balance", param, type);
};

/**
 * 卡号
 * @param
 * @returns
 */
export const GetVaBankAccount = (param, type) => {
  return getRequest("/api/va/bank/merchant_account", param, type);
};

/**
 * 资金明细
 * @param
 * @returns
 */
export const GetVaTransaction = (param, type) => {
  return getRequest("/api/va/assets/transaction_details", param, type);
};

/**
 * 资金明细
 * @param
 * @returns
 */
export const GetVaTransactionDetail = (param, type) => {
  return getRequest("/api/va/assets/transaction_record_detail", param, type);
};

/**
 * 按月资产统计
 * @param
 * @returns
 */
export const GetVaStatisticsMonth = (param, type) => {
  return getRequest("/api/va/statistics/assets_month", param, type);
};

/**
 * 客户列表
 * @param
 * @returns
 */
export const GetVaUserList = (param, type) => {
  return getRequest("/api/va/user/list", param, type);
};

/**
 * 币种
 * @param
 * @returns
 */
export const GetVaBankCurrency = (param, type) => {
  return getRequest("api/va/bank/currency", param, type);
};

/**
 * 国家
 * @param
 * @returns
 */
export const GetPhoneAreaCode = (param, type) => {
  return getRequest("api/tool/getPhoneAreaCode", param, type);
};

/**
 * 新增编辑客户
 * @param
 * @returns
 */
export const CreateCustomer = (param, type) => {
  return postRequest("/api/va/user/create", param, type);
};

/**
 * 客户基信息
 * @param
 * @returns
 */
export const getUserInfo = (param, type) => {
  return getRequest("/api/va/user/info", param, type);
};

/**
 * 银行卡
 * @param
 * @returns
 */
export const getBankCardList = (param, type) => {
  return getRequest("/api/va/bank/card_list", param, type);
};

/**
 * 新增银行卡
 * @param
 * @returns
 */
export const addVABankCard = (param, type) => {
  return postRequest("/api/va/bank/card_add", param, type);
};

/**
 * 编辑银行卡
 * @param
 * @returns
 */
export const updateVABankCard = (param, type) => {
  return postRequest("/api/va/bank/card_update", param, type);
};

/**
 * 银行卡信息
 * @param
 * @returns
 */
export const getVABankCardInfo = (param, type) => {
  return getRequest("/api/va/bank/card_info", param, type);
};

/**
 * 删除银行卡
 * @param
 * @returns
 */
export const delVABankCardInfo = (param, type) => {
  return getRequest("/api/va/bank/card_delete", param, type);
};

/**
 * 付款转账
 * @param
 * @returns
 */
export const VATransfer = (param, type) => {
  return postRequest("/api/va/assets/transfer", param, type);
};

/**
 * 付款转账
 * @param
 * @returns
 */
export const VATransactionRecordDetail = (param, type) => {
  return postRequest("/api/va/assets/transaction_record_detail", param, type);
};

/**
 * 付款转账
 * @param
 * @returns
 */
export const GetVAPayerList = (param, type) => {
  return getRequest("/api/va/orders/payer_list", param, type);
};

/**
 * 创建付款人
 * @param
 * @returns
 */
export const AddVAPayer = (param, type) => {
  return getRequest("/api/va/orders/create_payer", param, type);
};

/**
 * 收单支付链接
 * @param
 * @returns
 */
export const VAOrdersPayment = (param, type) => {
  return postRequest("/api/va/orders/payment", param, type);
};

/**
 * 收单付款列表
 * @param
 * @returns
 */
export const GetVAOrdersPayList = (param, type) => {
  return getRequest("/api/va/orders/pay_link_list", param, type);
};

/**
 * 收单付款列表详情
 * @param
 * @returns
 */
export const GetVAOrdersPayInfo = (param, type) => {
  return getRequest("/api/va/orders/pay_link_info", param, type);
};

/**
 * 充值
 * @param
 * @returns
 */
export const VARecharge = (param, type) => {
  return postRequest("/api/va/assets/recharge", param, type);
};
